﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class paginas_Control_Notice : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (ApplicationEnvironment.Instance.Flash.ContainsKey("Notice"))
            {
                if (ApplicationEnvironment.Instance.Flash["Notice"] != null)
                {
                    lblNotice.Text = ApplicationEnvironment.Instance.Flash["Notice"];
                    ApplicationEnvironment.Instance.Flash["Notice"] = null;
                    this.notice.Visible = true;
                    return;
                }

                ApplicationEnvironment.Instance.Flash["Notice"] = null;
                this.notice.Visible = false;
            }
        }
    }
}